package com.user.model.vo;


import com.sun.istack.NotNull;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@ApiModel(value = "服务器查询信息封装")
public class QueryServerInfoVo {

    @ApiModelProperty(value = "内存单位M", name = "mery")
    private Integer mery;

    @ApiModelProperty(value = "磁盘处理器", name = "disk")
    private Integer disk;

    @ApiModelProperty(value = "带宽", name = "daik")
    private Integer daik;

    @NotNull
    @ApiModelProperty(value = "页码")
    private Integer pageIndex = 1;

    @NotNull
    @ApiModelProperty(value = "每页显示数量")
    private Integer pageSize = 100;

    public Integer getPageIndex() {
        return pageIndex - 1;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }
}
